<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新增公告</title>
    <!-- 引入Bootstrap CSS -->
    <link href="/hospital_department/src/assets/css/bootstrap_5.3.2.min.css" rel="stylesheet">
    <!-- 自定义样式 -->
    <link rel="stylesheet" href="<?= BASE_URL ?>src/assets/css/style.css">
</head>
<body class="bg-light">
<div class="sidebar">
    <a href="<?= BASE_URL ?>index.php" class="active">系统首页</a>
    <a href="<?= BASE_URL ?>index.php?c=department&a=index">科室信息</a>
    <a href="<?= BASE_URL ?>index.php?c=notice&a=index">公告管理</a>
    <a href="<?= BASE_URL ?>index.php?c=schedule&a=index">医生排班</a>
    <a href="<?= BASE_URL ?>index.php?c=manager&a=index">管理员信息</a>
    <a href="<?= BASE_URL ?>index.php?c=statistics&a=index">统计报表</a>
</div>
<div class="container mt-5">
    <div class="card shadow">
        <div class="card-header bg-primary text-white">
            <h3 class="mb-0">新增公告</h3>
        </div>

        <div class="card-body">
            <?php if (isset($errors) && !empty($errors)): ?>
                <div class="alert alert-danger">
                    <?php foreach ($errors as $error): ?>
                        <p><?= htmlspecialchars($error) ?></p>
                    <?php endforeach; ?>
                </div>
            <?php endif; ?>

            <form  method="post">
                <div class="mb-3">
                    <label for="title" class="form-label">标题</label>
                    <input type="text" class="form-control" id="title" name="title" required>
                </div>

                <div class="mb-3">
                    <label for="content" class="form-label">内容</label>
                    <textarea class="form-control" id="content" name="content" rows="5" required></textarea>
                </div>

                <button type="submit" class="btn btn-primary">
                    <i class="bi bi-save"></i> 提交
                </button>
            </form>
        </div>
    </div>
</div>

<!-- 引入Bootstrap JS和图标 -->
<script src="/hospital_department/src/assets/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="/hospital_department/src/assets/css/bootstrap-icons.min.css">
</body>
</html>